<template>
	<div>
		<web-view src="http://192.168.13.143:8088"></web-view>
	</div>
	
	
</template>
<script>
	export default {
		data() {
			return {
				map: null,
			}
		},
		onLoad() {
			//DOM初始化完成进行地图初始化
			wx.getLocation({
			 type: 'gcj02',
			 success (res) {
				 console.log(res)
			   const latitude = res.latitude
			   const longitude = res.longitude
			   const speed = res.speed
			   const accuracy = res.accuracy
			   uni.openLocation({
			   	latitude: res.latitude,
			   	longitude: res.longitude,
			   	success(){
			   		console.log('success');
			   	},
			   	fail(){
			   		console.log('error');
			   	}
			   });
			 }
			})

		},
	}
</script>
<style>
	.df{
		display: flex;
	}
	#container {
	height: 50vh;
	}

	.amap-container {
		height: 50vh;
	}
</style>
